home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / mail / sendmail.8.8.4.tar.gz / sendmail.8.8.4.tar / sendmail-8.8.4 / mailstats / Makefile.dist < prev   
Makefile  |  1996-09-21  |  2KB  |  79 lines

  1. #
  2. #  This Makefile is designed to work on the old "make" program.  It does
  3. #  not use the obj subdirectory.  It also does not install documentation
  4. #  automatically -- think of it as a quick start for sites that have the
  5. #  old make program (I recommend that you get and port the new make if you
  6. #  are going to be doing any signficant work on sendmail).
  7. #
  8. #    @(#)Makefile.dist    8.2 (Berkeley) 9/21/96
  9. #
  10.  
  11. # use O=-O (usual) or O=-g (debugging)
  12. O=    -O
  13.  
  14. # location of sendmail source directory
  15. SRCDIR=    ../src
  16.  
  17. # environment definitions (e.g., -D_AIX3)
  18. ENVDEF=
  19.  
  20. # see also conf.h for additional compilation flags
  21.  
  22. # include directories
  23. INCDIRS=-I${SRCDIR} -I/usr/sww/include
  24.  
  25. # loader options
  26. LDOPTS=
  27.  
  28. # library directories
  29. LIBDIRS=-L/usr/sww/lib
  30.  
  31. # libraries required on your system
  32. LIBS=
  33.  
  34. # location of mailstats binary (usually /usr/sbin or /usr/etc)
  35. BINDIR=    ${DESTDIR}/usr/sbin
  36.  
  37. # additional .o files needed
  38. OBJADD=
  39.  
  40. ###################  end of user configuration flags  ######################
  41.  
  42. CFLAGS=    -I. $O ${INCDIRS} ${ENVDEF}
  43.  
  44. OBJS=    mailstats.o ${OBJADD}
  45.  
  46. LINKS=    ${DESTDIR}/usr/ucb/newaliases ${DESTDIR}/usr/ucb/mailq
  47. BINOWN=    bin
  48. BINGRP=    bin
  49. BINMODE=555
  50.  
  51. ALL=    mailstats mailstats.0
  52.  
  53. all: ${ALL}
  54.  
  55. mailstats: ${BEFORE} ${OBJS}
  56.     ${CC} -o mailstats ${LDOPTS} ${OBJS} ${LIBDIRS} ${LIBS}
  57.  
  58. #NROFF=    nroff -h
  59. NROFF=    groff -Tascii
  60. MANDOC=    -mandoc
  61.  
  62. mailstats.0: mailstats.8
  63.     ${NROFF} ${MANDOC} mailstats.8 > mailstats.0
  64.  
  65. install: install-mailstats install-docs
  66.  
  67. install-mailstats: mailstats
  68.     install -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} mailstats ${BINDIR}
  69.  
  70. # doesn't actually install them -- you may want to install pre-nroff versions
  71. install-docs: mailstats.0
  72.  
  73. clean:
  74.     rm -f ${OBJS} mailstats mailstats.0
  75.  
  76. # dependencies
  77. #   gross overkill, and yet still not quite enough....
  78. ${OBJS}: ${SRCDIR}/sendmail.h ${SRCDIR}/mailstats.h ${SRCDIR}/conf.h
  79.